import service from '@/utils/request'

// @Tags CTypes
// @Summary 创建CTypes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CTypes true "创建CTypes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cTypes/createCTypes [post]
export const createCTypes = (data) => {
     return service({
         url: "/cTypes/createCTypes",
         method: 'post',
         data
     })
 }


// @Tags CTypes
// @Summary 删除CTypes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CTypes true "删除CTypes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cTypes/deleteCTypes [delete]
 export const deleteCTypes = (data) => {
     return service({
         url: "/cTypes/deleteCTypes",
         method: 'delete',
         data
     })
 }

// @Tags CTypes
// @Summary 删除CTypes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除CTypes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cTypes/deleteCTypes [delete]
 export const deleteCTypesByIds = (data) => {
     return service({
         url: "/cTypes/deleteCTypesByIds",
         method: 'delete',
         data
     })
 }

// @Tags CTypes
// @Summary 更新CTypes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CTypes true "更新CTypes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cTypes/updateCTypes [put]
 export const updateCTypes = (data) => {
     return service({
         url: "/cTypes/updateCTypes",
         method: 'put',
         data
     })
 }


// @Tags CTypes
// @Summary 用id查询CTypes
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CTypes true "用id查询CTypes"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cTypes/findCTypes [get]
 export const findCTypes = (params) => {
     return service({
         url: "/cTypes/findCTypes",
         method: 'get',
         params
     })
 }


// @Tags CTypes
// @Summary 分页获取CTypes列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取CTypes列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cTypes/getCTypesList [get]
 export const getCTypesList = (params) => {
     return service({
         url: "/cTypes/getCTypesList",
         method: 'get',
         params
     })
 }